<% layout('/layout/default.html', {title: '', bodyClass: 'sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed', bodyStyle: 'overflow:hidden;', libs: ['tabPage','validate']}){ %>
<div class="wrapper">
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <% include('/modules/sys/sysIndex/topMenu.html'){} %>
    </nav>
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="http:\\jsite.org.cn" class="brand-link">
            <img src="${ctxStatic}/adminlte3.0/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
                 style="opacity: .8">
            <span class="brand-text font-weight-light">AdminLTE 3 </span>
        </a>

        <div class="sidebar">
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="${ctxStatic}/images/userinfo.png" class="img-circle elevation-2" alt="User Image">
                </div>
                <div class="info">
                    <a href="javascript:" class="d-block addTabPage" title="个人设置" data-href="/sys/user/info" >${user.loginName}</a>
                    <a href="${ctx}/logout" title="注销" ><i class="fa fa-circle text-success"></i> ${i18n("在线")}[退出]</a>
                </div>
            </div>

            <% include('/modules/sys/sysIndex/leftMenu.html'){} %>
        </div>
    </aside>

    <div class="content-wrapper">
        <div id="tabpanel"></div>
    </div>

    <aside class="control-sidebar control-sidebar-dark" style="overflow-y: hidden;">
        <!-- Control sidebar content goes here -->
    </aside>
</div>
<div id="desktopTabPage" class="hide" data-title="仪表盘" data-url="/desktop"></div>
<script src="${ctxStatic}/modules/sys/index.js"></script>
<script src="${ctxStatic}/adminlte3.0/js/demo.js"></script>
<script language="JavaScript">
    //判断当前窗口是否有顶级窗口，如果有就让当前的窗口的地址栏发生变化，
    //这样就可以让登陆窗口显示在整个窗口了

    $(function () {
        // if (window.top!=null && window.top.document.URL!=document.URL){
        //     window.top.location= document.URL;
        // }

        if (window != top){
            top.location.href = location.href;
        }
    });
</script>
<% } %>